package org.cnbi.entity;

/**
 * Copyright © 2014中国经邦. All rights reserved.
 * @Author 龚佳新
 * @Time 2014年3月10日下午6:57:20
 */

import java.io.Serializable;

/**
 * 
 * Copyright © 2014中国经邦. All rights reserved.
 * @author 龚佳新
 * @date 2014年4月18日下午12:36:01
 * @cnbi-utils
 * 注意：与以前的有点不一样哦！
 */
public class User implements Serializable {
	
	
	private static final long serialVersionUID = 1L;
	
	private int nid;
    /**
     * 用户登录名称
     */
	private String username;
	/**
	 *  用户登录密码
	 */
	private String password;
	/**
	 * 用户email
	 */
	private String email;
	/**
	 * 用户创建时间
	 */
	private String createTime;
	
	/**
	 * 用户角色  不用弄什么一个用户可以是多个角色，一个角色即可  
	 */
	private int role;
	/**
	 * 用户性别
	 */
	private String sex = "男";
	/**
	 * 用户真实姓名
	 */
	private String trueName;
	
	/**
	 * 用户联系电话号码
	 */
	private String phone;
	
	/**
	 * 此用户是否已经授权
	 */
	private String authorize = "Y";
	
	/**
	 * 此用户是否启用
	 */
	private String isenabled = "Y";
	
	/**
	 * 此用户是否管理员
	 */
	private String isadmin = "N";
	
	/**
	 * 此用户属于当前集团的哪个公司的人  这个字段思考了很久 ，最终约定还是加上，以防不测
	 * 
	 * 如果为null则说明此人不属于任何公司
	 */
	private String company;

	public User() {
	}

	public User(String username) {
		this.username = username;
	}

	
	public String getIsenabled() {
		return isenabled;
	}

	public void setIsenabled(String isenabled) {
		this.isenabled = isenabled;
	}

	/**
	 * @return the isadmin
	 */
	public String getIsadmin() {
		return isadmin;
	}

	/**
	 * @param isadmin the isadmin to set
	 */
	public void setIsadmin(String isadmin) {
		this.isadmin = isadmin;
	}

	/**
	 * @return the nid
	 */
	public int getNid() {
		return nid;
	}

	/**
	 * @param nid the nid to set
	 */
	public void setNid(int nid) {
		this.nid = nid;
	}

	/**
	 * @return the password
	 */
	public String getPassword() {
		return password;
	}

	/**
	 * @param password the password to set
	 */
	public void setPassword(String password) {
		this.password = password;
	}

	/**
	 * @return the email
	 */
	public String getEmail() {
		return email;
	}

	/**
	 * @param email the email to set
	 */
	public void setEmail(String email) {
		this.email = email;
	}

	
	/**
	 * @return the role
	 */
	public int getRole() {
		return role;
	}

	/**
	 * @param role the role to set
	 */
	public void setRole(int role) {
		this.role = role;
	}

	/**
	 * @return the sex
	 */
	public String getSex() {
		return sex;
	}

	/**
	 * @param sex the sex to set
	 */
	public void setSex(String sex) {
		this.sex = sex;
	}

	/**
	 * @return the trueName
	 */
	public String getTrueName() {
		return trueName;
	}

	/**
	 * @param trueName the trueName to set
	 */
	public void setTrueName(String trueName) {
		this.trueName = trueName;
	}

	/**
	 * @return the phone
	 */
	public String getPhone() {
		return phone;
	}

	/**
	 * @param phone the phone to set
	 */
	public void setPhone(String phone) {
		this.phone = phone;
	}

	/**
	 * @return the authorize
	 */
	public String getAuthorize() {
		return authorize;
	}

	/**
	 * @param authorize the authorize to set
	 */
	public void setAuthorize(String authorize) {
		this.authorize = authorize;
	}

	/**
	 * @return the company
	 */
	public String getCompany() {
		return company;
	}

	/**
	 * @param company the company to set
	 */
	public void setCompany(String company) {
		this.company = company;
	}

	

	/**
	 * @return the username
	 */
	public String getUsername() {
		return username;
	}

	/**
	 * @param username the username to set
	 */
	public void setUsername(String username) {
		this.username = username;
	}

	/**
	 * @return the createTime
	 */
	public String getCreateTime() {
		return createTime;
	}

	/**
	 * @param createTime the createTime to set
	 */
	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}
	
	

}
